// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'iview/dist/styles/iview.css'
import Vuex from 'vuex'
import store from './vuex/store'
// 引用API文件
import api from './api/index.js'
import iView from 'iview'; // 导入组件库
import 'iview/dist/styles/iview.css'; // 导入样式

// 将API方法绑定到全局
Vue.prototype.$api = api;

Vue.config.productionTip = false;
Vue.use(iView);
Vue.use(Vuex);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
});
